﻿
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;


namespace TIoES
{


    class GameObj
    {
        public Texture2D Sprites;
        public float xPos;
        public float yPos;
        public float theta;
        public float hp;
        public float mp;
        public Vector2 vPos;
        public bool alive;
        public Vector2 Speed;
        public Vector2 aSpeed;
        public Vector2 center;

        private Rectangle rcObj;


        public GameObj(Texture2D loadedObj)
        {
            Sprites = loadedObj;
            // 위치관련
            this.xPos = 390;
            this.yPos = 220;
            this.vPos = new Vector2(xPos, yPos);
            Speed = Vector2.Zero;
            aSpeed = Vector2.Zero;
            this.theta = 0;
            center = new Vector2(Sprites.Width / 2, Sprites.Height / 2);

            this.hp = 0;
            this.mp = 0;

            this.alive = false;
        }
    }
}
